// --------------------------------------------------------------------------------------------------------------------
// <copyright file="DataCenter.cs" company="">
//   
// </copyright>
// --------------------------------------------------------------------------------------------------------------------
namespace ExecutionTool.ImportExport
{
    using System.Configuration;

    /// <summary>
    /// The actual data center entry in the app.config.  It will look like this:
    /// <add dns="CH1-1" name="North Central US" endpoint="https://ch1prod-dacsvc.azure.com/DACWebService.svc"/>
    /// </summary>
    public class DataCenter : ConfigurationElement
    {
        #region Public Properties

        [ConfigurationProperty("dns", DefaultValue = "", IsKey = true, IsRequired = true)]
        public string DnsPrefix
        {
            get
            {
                return (string)base["dns"];
            }

            set
            {
                base["dns"] = value;
            }
        }

        [ConfigurationProperty("endpoint", DefaultValue = "", IsKey = false, IsRequired = true)]
        public string Endpoint
        {
            get
            {
                return (string)base["endpoint"];
            }

            set
            {
                base["endpoint"] = value;
            }
        }

        [ConfigurationProperty("name", DefaultValue = "", IsKey = false, IsRequired = true)]
        public string Name
        {
            get
            {
                return (string)base["name"];
            }

            set
            {
                base["name"] = value;
            }
        }

        #endregion
    }
}
